import i18n from 'i18next'
import zh_CN from './locales/zh_CN'
import en_US from './locales/en_US'
import { initReactI18next } from 'react-i18next'

let localLNG = localStorage.getItem('localLNG')
console.log(`i18n get localStorage:${localLNG}`);
i18n.use(initReactI18next).init({
    resources: {
        en: {
            translation: en_US
        },
        zh: {
            translation: zh_CN
        },
    },
    lng: localLNG,
    interpolation: {
        escapeValue: false,
    }
})